home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / AmigaSystem / Scalos / PreferencesLib / examples / C / makefile < prev    next >
Makefile  |  2002-10-28  |  944b  |  45 lines

  1. CC      = vc
  2. CFLAGS  = -c -+ -O2 -Iinclude: -DVBCC
  3. CCFLAGS =
  4. LD      = vc
  5. LDFLAGS =
  6. LDLIBS  = -lamiga
  7.  
  8. # default target to make - all examples
  9. all: single multiple loadsave big
  10.  
  11.  
  12. # specifics for all targets
  13. single: single.o
  14.     $(LD) $(LDFLAGS) -o $@ single.o $(LDLIBS)
  15.  
  16. multiple: multiple.o
  17.     $(LD) $(LDFLAGS) -o $@ multiple.o $(LDLIBS)
  18.  
  19. loadsave: loadsave.o
  20.     $(LD) $(LDFLAGS) -o $@ loadsave.o $(LDLIBS)
  21.  
  22. big: big.o
  23.     $(LD) $(LDFLAGS) -o $@ big.o $(LDLIBS)
  24.  
  25.  
  26. # CLI command used when compiling. This is generic and will be called for all the
  27. # dependancies that need compiling.
  28. .c.o:
  29.     $(CC) $(CCFLAGS) $(CFLAGS) -o $@ $<
  30.  
  31.  
  32. # A list of all project dependancies. Since the list of header files is so small, they
  33. # are just put in after the source files instead of defining another variable to hold them
  34. # all.
  35. single.o: single.c
  36. multiple.o: multiple.c
  37. loadsave.o: loadsave.c
  38. big.o: big.c
  39.  
  40.  
  41. # A little something to clean it all up
  42. clean:
  43.     delete #?.o
  44.  
  45.